package com.mg.message.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName(value = "tb_message")
public class Message {
    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid;

    @TableField(value = "title")
    private String title;

    @TableField(value = "content")
    private String content;

    /**
     * 0表示群发，1表示指定用户
     */
    @TableField(value = "send_area")
    private Integer sendArea;

    /**
     * 0表示立即发送，1表示定时发送
     */
    @TableField(value = "send_method")
    private Integer sendMethod;

    /**
     * 审核，0表示代审核，1表示审核通过，2表示不通过
     */
    @TableField(value = "trial")
    private Integer trial;

    /**
     * 总费用
     */
    @TableField(value = "total_pay")
    private Double totalPay;

    /**
     * 是否删除，1表示删除
     */
    @TableField(value = "is_delete")
    @TableLogic(delval = "1", value = "0")
    private Integer isDelete;

    public static final String COL_MID = "mid";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_SEND_AREA = "send_area";

    public static final String COL_SEND_METHOD = "send_method";

    public static final String COL_TRIAL = "trial";

    public static final String COL_TOTAL_PAY = "total_pay";

    public static final String COL_IS_DELETE = "is_delete";
}